'use strict';
var i =1;
setInterval(function () {
    i++;
    if(i>4){
        i=1;
    }
    document.getElementById('showpic').src="../img/showpic"+i+".jpg";
},1000);